home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
print
/
ya2side8.zip
/
ya2sider.doc
< prev
next >
Wrap
Text File
|
1994-06-11
|
14KB
|
481 lines
Yet another 2 sider printing program
or
Save a tree
Copyright (c) 1994 by Ted Medin
Introduction 3
Types of documents 3
Unformated 3
Pages formatted by form length 4
Pages formatted by a form feed 4
Types of printers 4
Printing on part of the form 5
Printing on the complete form. 6
Program operation 6
b option 6
d option 6
f option 6
i option 7
l option 7
o option 7
p option 7
r option 7
s option 7
t option 8
w option 8
? option 8
filename 8
Examples 9
Unformated document to a page printer 9
Unformated input printed on a fan fold printer 9
Formatted (form length) input on a page printer 10
Formatted (using ff) input on a fan fold printer 10
Formatted (using ff) input to a page printer 10
Disclaimer 10
Contact 11
Trade marks 12
Introduction
This is one of those things i didn't want to do but after trying
all the programs that supposedly did two sided printing &
failing i dove in. My problem was a HP paintjet page printer &
after spending much time on this program decided i would share
it with you. But first thing's first: I love the Lord Jesus
Christ so first i thank him for the strength & mind to do things
like this. Fell in love with Him a good many years ago and He
has been better to me than i deserve all these years. Favorite
verse is Heb 7:25; second i got into digital computing in 1955
so have been around for a bit but the mind isn't completely
gone. My intention is to serve some of you out there that find
this program useful. If you find ya2sider useful for private use
send me a card, think kindly of me or whatever. If you find this
useful for business, government or commercial then we got to
share the wealth, so contact me about same. Also if you find
bugs i would appreciate a report, there are many different
printers out there so doubt if all are covered.
Types of documents
Ya2sider will attempt to handle three types of documents:
Unformated
So you want to get a listing of a program, document ... Ya2sider
will break the printing into pages & you can optionally have an
info line on the top or bottom of the page. The optional info
line can be made up of text you supply, file name, page number &
date of this run. You can even specify the order of these items
on the line.Pages formatted by form length
This is the situation where someone has created a document that
is exactly form length lines long (usually 66). It has blanks
before the text & blanks after the text. Usually has its own
info line or page numbers ... Ya2sider will also allow you to
add the info line described above if there is room on the page.
Pages formatted by a form feed
This is the situation where someone has created a document that
is formatted from the start of the page & then a ff (form feed)
is used to get to the next page. Ya2sider will allow you to add
the info line described above if there is room on the page.
Types of printers
I have a HP paintjet xl & a HP paintjet. The xl is the page
printer & the power up defaults allow you to print on 60 lines
of the page but not the top or bottom margin. While the other
paintjet runs fan fold & at power up defaults will print on any
line of the page including top & bottom margin. Perhaps a picture will help the understanding:
___ _________________________________________
^ | |
| | top margin |
| | |
| |________________________________________|
| |
| |
fl | |
| |
| |
| printed page
|
| | |
| | |
| | |
| | |
| |________________________________________|
| | |
| | bottom margin |
V | |
___ |________________________________________|
fl = form length in lines
Printing on part of the form
The xl prints only in the printed page area. If you have a
printer like this you must inform ya2sider that the top & bottom
margins are zero (0). So set options b & o to 0. For this type
of printer the f (fl above) option (see below) need not be the
sum of the b, o & p options. You also must inform ya2sider about
the max line length that the printer can print. If your printer
has proportional fonts then it's almost a sure thing ya2sider
will get into line length problems (user beware). Your printer probably has default left & right margins on the
page which may influence the r & l options. Remember the r
option is the left margin for even pages. Your printer also may
wrap or truncate a line that is too long. Ya2sider will attempt
to diagnose this but user beware.
Printing on the complete form.
Some printers print on the complete form. Ya2sider must be
informed about the top/bottom margins that you or your document
would like. So set options b, o, f & p appropriately. You may
want to wait until the end of the analysis phase (see below) &
adjust these 4 options to get the pages to print correctly. F
(fl above) is the form length & must equal the sum of p, b & o.
Program operation
The program has a number of options & is called as follows:
ya2sider [option(s)] filename
b option
This is the Bottom margin and is specified -b# (where # is the
number of blank lines).
d option
This is the Define info line option. The presence & order you
place the sub options determines the format of the info line:
f-input File name
i-text input from I option
p-Page & number
t-Time/date of this run
f option
This is the Form length option & is the number of lines on the
form. Specified by -f#i option
This is the Info line option and has three sub fields:
b-put info line at Bottom of page
t-put info line at Top of page
text-your text for the info line
The b/t must appear immediately after the i & if the text
contains any blanks the complete option must be enclosed in "s.
Also some special characters in the text may require the "s.
l option
This is the Left margin for odd pages. When printing two sides
if possible have the l option larger than the r option margin.
The idea is to have blank paper in the right place in case you
want to bind your pages.
o option
This is the tOp margin of page and is specified -o# (where # is
the number of blank lines).
p option
This is the Page length on form, in lines. Specified -p#
r option
This is the left margin for even pages, see l option above.
s option
This option Specifies where to send the output. Sub options are:
f<text>-text specifies the output File name OR you may specify
a device - debug use to see how the program is formatting your
input file? Or if you specify a device we check for the usual
devices (aux, com[1-4], con, lpr[1-3] & prn) & assume you have a
printer attached. Then the program acts like the output was to
stdprn but sends the output to the device.
p-stdprn, primary Printer
s-stdout, output to Screen - you may want to use this for debug
before printing a hardcopy.t option
This specifies the number of columns per Tab stop -t#
w option
Width